package com.zhehekeji.opsys.api.webservice.server;

import javax.annotation.Resource;
import javax.jws.WebService;

import com.zhehekeji.opsys.api.resp.StatisticalTrafficResp;
import com.zhehekeji.opsys.api.service.manager.IDataSatisticsService;

/**
 * @ClassName DataSatisticsWS
 * @Description TODO
 * @author chenweiliu chenwei.liu@163.com
 * @date 2015-3-26   上午11:24:07
 */
@WebService(endpointInterface="com.zhehekeji.opsys.api.webservice.server.DataSatistics",
name="dataSatistics",portName="dataSatisticsPort",serviceName="dataSatisticsWS")
public class DataSatisticsWS implements DataSatistics {

	@Resource(name="dataSatisticsService")
	private IDataSatisticsService dataSatisticsService;
	
	public void setDataSatisticsService(IDataSatisticsService dataSatisticsService) {
		this.dataSatisticsService = dataSatisticsService;
	}

	@Override
	public StatisticalTrafficResp statisticalTraffic(String productCode) {

		StatisticalTrafficResp resp = dataSatisticsService.statisticalTraffic(productCode);
		return resp;

	}

}
